<?php
/*	$email = "khanh@greengar.com";
	$send = mail($email, 'My Subject', 'hello');
	if($send) {
		echo 'sent email.';
	} else {
		echo 'error';
	}
*/	
	global $CONFIG;	
	
//	notify_user($to, $from, $subject, $message, array $params = NULL, $methods_override = "");
	$result = notify_user("khanh@greengar.com", $CONFIG->site->guid, 'hello', 'ohoh', NULL, 'email');
	print '<pre>';
	print_r($result);
	echo 'a: ' . $result;
?>